home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-17 | 1.3 KB | 72 lines | [TEXT/EMAC] |
- !
- ! InterSLIP gateway script for NETCOM using TIA
- ! by Bill Arnett (billa@netcom.com)
- ! other users may have to modify the lines marked with "<-------- "
-
- @originate
- matchclr
- matchstr 1 1 "ogin:" ! <-------- "login:" prompt
- SetTries 124
- matchread 100
- note "no login prompt; trying again"
- write "\13"
- matchclr
- matchstr 1 1 "ogin:" ! <-------- "login:" prompt
- matchread 200
- note "no login prompt; trying once more"
- write "\13"
- matchclr
- matchstr 1 1 "ogin:" ! <-------- "login:" prompt
- matchread 300
- note "no login prompt; giving up"
- pause 60
- exit -1
-
- @label 1
- note "Sending userid"
- write "^5\10"
- matchclr
- matchstr 1 2 "assword:" ! <-------- "password:" prompt
- matchread 200
- note "no password prompt"
- pause 60
- exit -1
-
- @label 2
- note "Sending password"
- write "^6\10"
- pause 20
- note "Waiting for prompt"
- matchclr
- matchstr 1 5 "% " ! <-------- shell prompt
- matchstr 2 7 "incorrect"
- matchread 200
- note "No shell prompt; trying again"
- write "\13"
- matchclr
- matchstr 1 5 "% " ! <-------- shell prompt
- matchread 300
- note "No shell; giving up"
- pause 60
- exit -1
-
- @label 5
- note "Starting TIA"
- SetTries 0
- write "exec tia\13" ! <-------- start TIA; quit shell
- matchclr
- matchstr 1 6 "Ready"
- matchread 200
- note "TIA not responding"
- pause 60
- exit -1
-
- @label 6
- note "OK"
- exit 0
-
- @label 7
- note "incorrect password; giving up"
- pause 60
- exit -1
-